<%--
  Created by IntelliJ IDEA.
  User: lutao
  Date: 2017/7/24
  Time: 13:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>卡券类型编辑</title>
    <script type="text/javascript" charset="utf-8" src="/static/lib/wangEditor/wangEditor.min.js"></script>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data">
        <input id="tid" name="tid" value="${certificateClassify.tid}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>卡券类型名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="卡券类型名称" value="${certificateClassify.name}" id="name"
                       name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>执行方法名：</label>
            <div class="formControls col-xs-8 col-sm-9">

                <select class="region select radius input-text" name="execClass">
                    <option value="verifyExperienceCertificateService">一次到店体验券</option>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>选择产品：</label>
            <div class="formControls col-xs-8 col-sm-9">
         <span class="select-box">
                     <select class="region select radius input-text" id="productEntityId" name="productEntityId">
                         <c:forEach items="${productEntityList}" var="item">
                             <option value="${item.productEntityId}" ${certificateClassify.productEntityId==item.productEntityId?"selected":"" }>${item.productEntityName}</option>
                         </c:forEach>
                </select>
				</span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>卡券介绍：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" value='${certificateClassify.introduce}' name="introduce" id="introduce">
                <div id="editor"  class="editor"></div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>面值或次数：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="面值或次数" value="${certificateClassify.price}" id="price"
                       name="price">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">卡券图片：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="btn-upload form-group">
                    <input class="input-text upload-url" type="text" name="photo" id="photo" readonly nullmsg="请添加图片！"
                           style="width:200px">
                    <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                    <input type="file" multiple name="photo" class="input-file">
				</span>
                <img src="${certificateClassify.certificatePic}" width="100">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>生成方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                     <select class="region select radius input-text" id="certificateCreateType" name="certificateCreateType">
                         <option value="1" ${certificateClassify.certificateCreateType==1?"selected":"" }>创建批次时生成</option>
                         <option value="3" ${certificateClassify.certificateCreateType==3?"selected":"" }>销售时生成</option>
                </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>有效期：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="卡券有效期(单位天，有>0值表示从领取卡券开始算，开始结束时间无效)"
                       value="${certificateClassify.certificateIdInterval}" id="certificateIdInterval"
                       name="certificateIdInterval">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
               <select class="region select radius input-text" name="status">
                   <option   value="1" ${certificateClassify.status==1?"selected":"" }>有效</option>
                   <option   value="0" ${certificateClassify.status==0?"selected":"" }>有效</option>
               </select>            </div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="certificateBatchSubmit"
                       value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/certificate/certificateClassify.js?v=110"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
